package day06;



public class MethodDemo1 {
    public static void main(String[] args) {
        say();
        sayHi("大笨熊");
        sayHello("大笨熊",20);

        System.out.println(getnum());

        System.out.println(add(50,60));

        System.out.println(testArray().length);

    }

    private static void say(){
        System.out.println("我是大笨熊，你好啊");
    }
    private static void sayHi(String name){
        System.out.println("我是"+name+",你好呀");
    }
    private static void sayHello(String name,int age){
        System.out.println("我是"+name+",我今年"+age+"岁了");
    }
    private static int add(int i,int j){
        return i+j;
    }
    private static double getnum() {
        return 500.5664;
    }

    private static int[] testArray() {
        int[] arr = {1,2,3,45};
        return arr;
    }
}
